import axios from '@/api/index'

function detailaction (data) {
  return axios({
    url: '/goods/detailaction',
    method: 'GET',
    data
  })
}
function addcollect (data) {
  return axios({
    url: '/collect/addcollect',
    method: 'POST',
    data
  })
}
function addCart (data) {
  return axios({
    url: '/cart/addCart',
    method: 'POST',
    data
  })
}
function submitAction (data) {
  return axios({
    url: '/order/submitAction',
    method: 'POST',
    data
  })
}

export {
  detailaction,
  addcollect,
  addCart,
  submitAction
}
